<template>
	<view >
		<view class="bot-cont">
			<view>{{ title }}</view>
			<view><view class="btn-box" @click="jump()">立即更新</view></view>
		</view>
		<view class="bot-net">
			<view class="cty" >主要更新</view>
			<view class="con">{{ content }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userId: '',
				title:'',
				content:'',
				url_d:''
			}
		},
		onLoad(e) {
			this.userId = e.userId
			this.get_data()
		},
		methods: {
			get_data(){
				this.$getHttp(`/gjcApi/getNewGradeInfo`, {}, res => {
					if(res.code == 200){
						this.title = res.data.title
						this.content = res.data.content
						this.url_d = res.data.url
					}
				})
			},
			jump(){
				uni.navigateTo({
                    url: `/pages/my/webView?url=${this.url_d}`
                })
			}
		
		}
	}
</script>

<style lang="scss" scoped>


.bot-cont{
    background-color: #d5d5d66e;
    font-size: 15px;
    text-align: center;
    color: black;
    font-weight: bold;
    margin: 10px 10px;
    border-radius: 4px;
    padding: 30px 0px;
}
.btn-box{
    width: 80%;
    color: #FFFFFF;
    padding: 11px 0;
    align-items: center;
    background: #02ad02;
    border-radius: 4px;
    text-align: center;
    margin-left:10%;
    margin-top: 30px;
}
.bot-net{
	margin:0px 10px;
	
}
.cty{
	font-size: 15px;
    color: black;
    font-weight: bold;
}
.con{
	font-size:13px;
	margin-top: 30px;
	word-break: break-word;
}
</style>
